<?php
class Epil extends AppModel {

	var $name = 'Epil';
	var $validate = array(
		'funcoe_id' => array('notempty'),
		'tipo' => array(
			'ruleisUnique' => array(
				'rule' => 'isUnique',
				'message' => 'EPI já cadastrada'),
			'rulenotempty' => array(
				'rule' => 'notempty',
				'message' => 'Este campo não pode ficar em branco')
			)
);
	

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Funcoe' => array(
			'className' => 'Funcoe',
			'foreignKey' => 'funcoe_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>